import config
import obj_config
import sys


class Core:
    def __init__(self) -> None:
        sys.path.append(
            "/home/arksm/Рабочий стол/МОИ ПРОЕКТЫ/программирование/Core_voice_help_2_0/Kernel/obj_config.py"
        )
        obj_config.speech_recognition.thread()

    def main(self) -> None:
        obj_config.obj_work_mode.update_timer_name()
        while not config.exit_flag:
            # try:
            obj_config.obj_wrapper_calls_func.Main_call_func()
            # obj_config.service_functions_obj.dec_queue_clear()
            # obj_config.communication_obj.event_message()
            # except Exception as e:
            # obj_config.communication_obj.messege(f"Фатальная ошибка {e}")
            # config.exit_flag=True
        exit(1)


obj = Core()
obj.main()
